package homework.day07.bean;

/**
 * @author ThinkBook
 */
public class Circle {
    private double radius;
    private double SurfaceArea;
    private double Circumference;
    public Circle(int radius){
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public double getSurfaceArea(){
        SurfaceArea = Math.PI*radius*radius;
        return SurfaceArea;
    }
    public double getCircumference(){
        Circumference = Math.PI*radius*2;
        return Circumference;
    }
    @Override
    public String toString(){
        return "Circle{radius=" + radius + "}";
    }
}
